class Title 
	attr_accessor :name, :file, :duration
	def initialize(name, file, dur)
		@name = name
		@file = file
		@duration = dur
	end

	def parse(node)
		@name = node["name"]
		@file = node["file"]
		@duration = node["duration"]
	end

	def print()
		puts "title " + @name + " " + 
			if !@file.nil? then @file else "" end + " " + 
			if !@duration.nil? then @duration else "" end + "\n"
	end
end

